#ifndef OPENCV_H
#define OPENCV_H

#include <QDialog>
#include <QDebug>
#include <vector>
#include <QTimer>       // 定时器类
#include <QImage>
#include <QPixmap>
#include <QDateTime>
#include <QFileDialog>
#include <QMessageBox>
#include <QUdpSocket>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QDateTime>

namespace Ui {
class opencv;
}

class opencv : public QDialog
{
    Q_OBJECT

public:
    explicit opencv(QWidget *parent = 0);
    ~opencv();

private:
    Ui::opencv *ui;
    // 定时器对象
    QTimer *timer;
    QTimer *timer1; //时间显示定时器
    QString request;
   //套接字
   QUdpSocket *udpSocket;
   //定时器
   QTimer *timer2;
   // 截图
   QImage screenshot;

private slots:
    void onMonitoring();//监控的控制
    void timeoutSlot1(); //时间显示
private slots:
    //接收视频流
    void processDatagrams();
    //保存槽函数
    void saveScreenshot();

};

#endif // OPENCV_H
